Building and Optimizing a Classification Model for Trading